﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Maknys.Consultator.DomainModel
{
    public class TreeNodeList<T> : List<TreeNode<T>>
    {
        private TreeNode<T> parent;

        public TreeNodeList(TreeNode<T> Parent)
        {
            this.parent = Parent;
        }

        public TreeNode<T> Add(T value)
        {
            TreeNode<T> Node = new TreeNode<T>(parent);
            Node.Value = value;

            return Node;
        }

    }
}
